package com.ktjy.sample.note02and04;

@Hour({4,2,55,6,5,55,777})
@Hour({4,2,55,6,5,55,777})
public class Test {
    public static void main(String[] args) {
        //通过Hours注解类型来获取Work中的值数组对象
        Hours [] hours= Test.class.getAnnotationsByType(Hours.class);
        //遍历数组对象
        for (Hours hour : hours) {
            System.out.println(hour);
        }
    }
}